package com.haiyou.common.util.time;

/**
 * 
 * 
 * @Description: 服务器时间
 * @author xingyuan
 * @date 2022年6月7日 下午7:30:05
 */
public class ServerTime {
	
	private static long offset = 0;

	public static long timeSecond() {
		return (System.currentTimeMillis() + offset) / 1000;
	}

	public static long timeMillis() {
		return System.currentTimeMillis() + offset;
	}

	public static void offset(long offset) {
		ServerTime.offset = offset;
	}
}
